<?php
var_dump($_FILES);
$file1 = $_FILES['file1'];
$tmp_file = $file1['tmp_name'];
$name_file = $file1['name'];

$name = date("Y/m/d");
mkdir("$name/",0777,true);
move_uploaded_file($tmp_file,"$name/{$name_file}");